using Zhaoxi.Zhihu.Core.AppUserAggregate.Entites;
using Zhaoxi.Zhihu.SharedKerel.Specification; 

namespace Zhaoxi.Zhihu.Core.AppUserAggregate.Specification;

public class FolloweeUserByIdSpec: Specification<AppUser>
{
    public FolloweeUserByIdSpec(int userId,int followeeId)
    {
        FilterCondition = user => user.Id == userId;
        AddInclude(user=> user. Followees.Where(followUser=> followUser. FolloweeId == followeeId));
    }
}